package com.DAO;

import java.util.List;
import com.bean.User;
import com.bean.Tie;

public interface TieDao {
	List<Tie> findAllTie() throws Exception;
	Tie findTieById(int tieID) throws Exception;
	Tie findTieByTitle(String tieTitle) throws Exception;
	boolean deleteTie(int tieID) throws Exception;
	boolean insertTie(String tieTitle,String tieCont) throws Exception;
	List<Tie> findTieByUser(int userID) throws Exception;
	User findUserByTieID(int tieID) throws Exception;
	boolean insertIntoTieUser(int tieID,int userID,String tieTitle) throws Exception;
	boolean isPubTie(int userID,String tieTitle) throws Exception;
	boolean updateTie(int tieID,String isPa) throws Exception;
}
